/*
 * @描述:
 * @作者: 约訂
 * @Date: 2024-06-12 10:09:34
 * @LastEditTime: 2024-06-20 10:54:50
 * @修改人员: 约訂
 */
import request from "@/utils/request";

export function login(username, password) {
  console.log(username, password);
  return request({
    url: "Auth/Login",
    method: "post",
    data: {
      username,
      password,
    },
  });
}
export function getUserInfo() {
  return request({
    url: "Auth/GetUserInfo",
    method: "get",
  });
}

export function getVerifyCode() {
  return request({
    url: "Auth/Code" + "?t=" + new Date().getTime(),
    method: "get",
  });
}

export function logout() {
  return request({
    url: "Auth/LogOut",
    method: "get",
  });
}
export default { getUserInfo, login, getVerifyCode, logout };
